package oi;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OSW {
    public static void main(String[] args) {
        try (OutputStreamWriter osw = new OutputStreamWriter(
                new FileOutputStream("osw.txt",true));)
        {
            osw.write("好好学习，天天向上");
            osw.write("狗蛋");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
